//
//  MomentView.swift
//  loveHHEveryDay
//
//  Created by yw on 2025/4/15.
//

import SwiftUI

struct MomentView: View {
    @State var list = []
    var body: some View {
        NavigationStack {
            VStack {
                ScrollView(showsIndicators: false) {
                    if list.isEmpty {
                        noDataView
                        writeBtn
                    }
                }
            }.navigationTitle("时刻")
                    .frame(maxWidth: .infinity)
                    .background(Color("color_bg"))
        }
    }
    
    var noDataView:some View {
        VStack(alignment: .center) {
            Image("moment_nodata")
                .resizable()
                .aspectRatio(contentMode: .fill)
                .frame(width: 200)
            Text("无任何记录时刻哦")
                .modifier(YWTextModifer(fontSize: 14, fontWeight: .light, design: .rounded, color: .colorTextSub))
                .padding(.top,10)
            Text("快来点击下方按钮记录时刻吧")
                .modifier(YWTextModifer(fontSize: 14, fontWeight: .light, design: .rounded, color: .colorTextSub))
//                .padding(.top,2)
        }.padding(.top,60)
    }
    
    var writeBtn:some View {
        ShakeButton(label: Text("记录时刻"),textColor: .colorTextMain, fontSize:16,fontWeight: .bold) {
            
        }.padding(.top,60)
    }
}

